package cn.iocoder.yudao.module.aiposter.enums;

import cn.iocoder.yudao.framework.common.exception.ErrorCode;

public interface ErrorCodeConstants {
    ErrorCode POSTER_NOT_EXISTS = new ErrorCode(10010001, "海报不存在");
    ErrorCode TEMPLATE_NOT_EXISTS = new ErrorCode(10010002, "模版信息不存在");
    ErrorCode SUBMIT_NOT_EXISTS = new ErrorCode(10010003, "提交海报信息不存在");
    ErrorCode IMG_UPLOAD_ERROR = new ErrorCode(10010004, "图片上传异常");
    ErrorCode MATERIAL_NOT_EXISTS = new ErrorCode(10010005, "素材资源不存在");


    // 海报生成异常
    ErrorCode POSTER_DRAW_CLIENT_ERROR = new ErrorCode(20010001, "海报渲染客户端异常");
    ErrorCode POSTER_SCREENSHOT_ERROR = new ErrorCode(20010002, "海报客户端启动异常");
    ErrorCode POSTER_DRAW_BROWSER_ERROR = new ErrorCode(20010003, "海报渲染浏览器初始化异常");
    ErrorCode POSTER_BASE_TRANSFORMER_ERROR = new ErrorCode(20010003, "URL异常，无法转为BASE64数据");
    ErrorCode POSTER_AI_POSTER_DATA_ERROR = new ErrorCode(20010003, "合成图片信息找打到, 请重试");
    ErrorCode POSTER_AI_POSTER_HTTP_ERROR = new ErrorCode(20010004, "AI合成图片，HTTP请求异常");

}
